<form *ngIf="forms" nz-form [formGroup]="form" class="clearfix">
    <div nz-row nzType="flex">
        <ng-container *ngFor="let i of forms;let index = index">
            <nz-form-control nz-col [nzSpan]="i.length">
                <kylin-dynamic-form-base [formBase]="i" [form]="form"
                                         (valueChange)="valueChange($event,i)"></kylin-dynamic-form-base>
            </nz-form-control>
        </ng-container>
    </div>

    <div class="dynamic-button">
        <button *ngIf="hasSubmitButton" nz-button [nzType]="'primary'" (click)="onSubmit()">{{submitButtonText}}
        </button>
        <ng-content></ng-content>
    </div>

</form>
